{"version":3,"file":"script.min.js","sources":["script.js"],"names":["BX","appLayout","params","userSelectorControl","userSelectorControlCallback","bAccessLoaded","_appOptionsStack","init","firstRun","appHost","appProto","authId","authExpires","refreshId","formName","frameName","isAdmin","staticHtml","appId","appV","appI","appSid","memberId","restPath","proto","userOptions","appOptions","setTimeout","bind","addClass","removeClass","this","remove","window","src","document","forms","action","submit","messageInterface","refreshAuth","cb","sessid","bitrix_sessid","ajax","loadJSON","location","href","data","AUTH_ID","AUTH_EXPIRES","REFRESH_ID","alert","resizeWindow","f","width","parseInt","height","style","p","pos","setTitle","UpdatePageTitle","title","setScroll","scroll","scrollTo","GetWindowScrollPos","scrollLeft","getInitData","LANG","message","DOMAIN","host","PROTOCOL","PATH","MEMBER_ID","FIRST_RUN","IS_ADMIN","INSTALL","USER_OPTIONS","APP_OPTIONS","setUserOption","name","value","save","setAppOption","push","defer","sendAppOptions","setInstall","setInstallFinish","v","h","replace","indexOf","result","selectUser","mult","onchange","Math","random","loadControl","PopupWindowManager","create","autoHide","content","setButtons","PopupWindowButton","text","className","events","click","selectUserCallback_1","isShown","show","display","selectAccess","Access","Init","groups","disabled","startValue","i","length","SetSelected","ShowForm","callback","arRights","res","provider","hasOwnProperty","id","selectCRM","loaded","entityType","multiple","obCrm","Open","AddOnSaveListener","reloadWindow","reload","imCallTo","BXIM","callTo","userId","video","imPhoneTo","phoneTo","phone","imOpenMessenger","openMessenger","dialogId","imOpenHistory","openHistory","receiveMessage","e","event","origin","cmd","split","args","JSON","parse","_cb","contentWindow","stringify","postMessage","apply","s","ss","r","slice","join","reInstall","control","method","url","processScriptsConsecutive","onsuccess","selectUserCallback_0","util","array_values","close","selectUserCallback_1_value","hideUpdate","version","stack","opts","options"],"mappings":"CAAC,WACDA,GAAGC,WACFC,UAEAC,qBAAsB,KAAM,MAC5BC,4BAA6B,KAC7BC,cAAe,MAEfC,oBAEAC,KAAM,SAASL,GAEdF,GAAGC,UAAUC,QACZM,WAAYN,EAAOM,SACnBC,QAAS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